
public class ScheduleSimulator {
	
	static boolean statsOnlyFlag = false;
	static boolean fcfsFlag = false;
	static boolean rr1Flag = false;
	static boolean rr2Flag = false;
	static boolean mlfqFlag = false;
	
	static String inFile;
	static String outFile;
	
	public static void main(String[] args) {
		//Make sure our arguments are valid and set the flags
		if (!processArguments(args))
			return;
		
		
		
		
	}
	
	protected static boolean processArguments(String[] args)
	{
		if (args.length < 2)
		{			//no input and output file
			System.out.println("Invalid input or output files.");
			return false;
		}
		inFile = args[0];
		outFile = args[1];
		
		for (int i = 2; i < args.length; i++)
		{
			if (args[i].equals("-statsOnly"))
				statsOnlyFlag = true;
			else if (args[i].equals("-fcfs"))
				fcfsFlag = true;
			else if (args[i].equals("-rr1"))
				rr1Flag = true;
			else if (args[i].equals("-rr2"))
				rr2Flag = true;
			else if (args[i].equals("-mlfq"))
				mlfqFlag = true;
		}
		
		if (!fcfsFlag && !rr1Flag && !rr2Flag && !mlfqFlag)
		{
			
			fcfsFlag = rr1Flag = rr2Flag = mlfqFlag = true;
		}
		
		return true;
	}
}
